package com.ruoyi.team.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库信息对象 store
 *
 * @author ruoyi
 * @date 2022-11-27
 */
@TableName("store")
@Getter
@Setter
public class Store extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String CAR_PACKAGE_DEFINITION_KEY="store_status";
    //正常仓库
    public static final Integer STORE_STATUS_NORMAL=0;
    //以被删除的仓库
    public static final Integer STORE_STATUS_DELETE=-1;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 仓库名字 */
    @Excel(name = "仓库名字")
    @TableField("store_name")
    private String storeName;

    /** 仓库地址 */
    @Excel(name = "仓库地址")
    @TableField("store_address")
    private String storeAddress;

    /** 状态 */
    @TableField("state")
    private Integer state;


    @TableField(exist = false)
    private String keyword;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storeName", getStoreName())
            .append("storeAddress", getStoreAddress())
            .append("state", getState())
            .toString();
    }
}
